package cn.zwk.entity;

import lombok.Data;

@Data
public class MetricItem extends AbstractItem {
    private DataRow row;
    
    // 添加便捷方法来设置双向关联
    public void setRow(DataRow row) {
        this.row = row;
        if (row != null) {
            row.setParent(this);
        }
    }
    
    @Override
    public String toString() {
        return row != null ? row.toString() : "";
    }
}
